package org.nf.box.service.impl;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.nf.box.mapper.FollowMapper;
import org.nf.box.service.FollowService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author lzp
 * @Date 2024-12-26
 */
@Service("followService")
@RequiredArgsConstructor
@Transactional(rollbackFor = RuntimeException.class)
@Slf4j
public class FollowServiceImpl implements FollowService {

    private final FollowMapper followMapper;

    @Override
    public Integer isAttention(Integer followerId, Integer followeeId) {
        return followMapper.isAttention(followerId, followeeId);
    }

}
